package yao.xerophyte.java.opp;

public class OppTest {
    public static void main(String[] args) {
        OppTest oppTest = new OppTest();
        CustomerOrder customerOrder = new CustomerOrder();
        customerOrder.setTestName("123123");
        System.out.println("第一次定义"+customerOrder);
        oppTest.handler1(customerOrder);
        System.out.println("改变第一次"+customerOrder);
        oppTest.handler2(customerOrder);
        System.out.println("改变第二次"+customerOrder);
    }
    private void handler1(CustomerOrder customerOrder){
        customerOrder.setTestName("345345");
    }
    private void handler2(CustomerOrder customerOrder){
        CustomerOrder customerOrder1 = customerOrder;
        customerOrder1.setTestName("456456");
    }
}
